//
//  CustomView.m
//  5.3Homework
//
//  Created by dllo on 16/6/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CustomView.h"

@implementation CustomView

+ (instancetype)customViewWithFrame:(CGRect)frame Color:(UIColor *)color{
    
    CustomView *custom = [[CustomView alloc]initWithFrame:frame];
    custom.backgroundColor = color;
    
    return [custom autorelease];
    
    
}








/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
